package it.koutifaris.travianmap.info;

import it.koutifaris.travianmap.model.Tribe;

public class TroopImpl implements Troop {

	private final String name;
	private final Tribe tribe;
	private final TroopType type;
	private final int offence;
	private final int cavalryDefence;
	private final int infantryDefence;
	private final int speed;

	public TroopImpl(String name, Tribe tribe, TroopType type, int offence, int cavalryDefence, int infantryDefence, int speed) {
		this.name = name;
		this.tribe = tribe;
		this.type = type;
		this.offence = offence;
		this.cavalryDefence = cavalryDefence;
		this.infantryDefence = infantryDefence;
		this.speed = speed;
	}

	@Override
	public String name() {
		return name;
	}

	@Override
	public Tribe tribe() {
		return tribe;
	}

	@Override
	public TroopType type() {
		return type;
	}

	@Override
	public int offence() {
		return offence;
	}

	@Override
	public int cavalryDefence() {
		return cavalryDefence;
	}

	@Override
	public int infantryDefence() {
		return infantryDefence;
	}

	@Override
	public int speed() {
		return speed;
	}

}
